package com.zhangkang.stock

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.zhangkang.stock.databinding.ActivityMainBinding
import com.zhangkang.stock.stocklib.StockDetailsManager

class MainActivity : AppCompatActivity() {

    private lateinit var mBinding: ActivityMainBinding

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        val inflate = ActivityMainBinding.inflate(layoutInflater)
        setContentView(inflate.root)
        mBinding = inflate
        inflate.stockDetails.setOnClickListener {
            StockDetailsManager.toStockDetailsActivity(this)
        }

        inflate.stockLandscapeDetails.setOnClickListener {
            StockDetailsManager.toStockLandscapeDetailsActivity(this)
        }
    }
}